package com.dongdong.controller;


import com.dongdong.service.SeckillOrderService;
import com.dongdong.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/seckillOrder")
public class SeckillOrderController {

    @Autowired
    private SeckillOrderService seckillOrderService;

    @GetMapping("/addSeckillOrder")
    public Result addSeckillOrder(@RequestParam Long id, @RequestHeader String accessToken){
        return  seckillOrderService.addSeckillOrder(id,accessToken);
    }
}
